package com.lfz.sso.pojo;

import com.lfz.common.pojo.BasePOJO;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tb_role")
public class Role extends BasePOJO {

    @Id
    private String id;
    private String name;
    private String code;
    private String remark;
    private Integer status;
    private String parentId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        super.toString();
        return "Role{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                ", parentId='" + parentId + '\'' +
                '}';
    }
}
